module ExprSyntax where
import ExprTokens
import ExprDataTypes

-- parser produced by Happy Version 1.17

data HappyAbsSyn 
	= HappyTerminal Token
	| HappyErrorToken Int
	| HappyAbsSyn4 ([ComboTuple])
	| HappyAbsSyn6 (String)
	| HappyAbsSyn7 (ComboTuple)

type HappyReduction m = 
	   Int 
	-> (Token)
	-> HappyState (Token) (HappyStk HappyAbsSyn -> [(Token)] -> m HappyAbsSyn)
	-> [HappyState (Token) (HappyStk HappyAbsSyn -> [(Token)] -> m HappyAbsSyn)] 
	-> HappyStk HappyAbsSyn 
	-> [(Token)] -> m HappyAbsSyn

action_0,
 action_1,
 action_2,
 action_3,
 action_4,
 action_5,
 action_6,
 action_7,
 action_8,
 action_9,
 action_10,
 action_11,
 action_12,
 action_13,
 action_14,
 action_15,
 action_16,
 action_17,
 action_18,
 action_19,
 action_20,
 action_21,
 action_22,
 action_23,
 action_24,
 action_25,
 action_26,
 action_27,
 action_28,
 action_29,
 action_30,
 action_31,
 action_32,
 action_33,
 action_34,
 action_35,
 action_36,
 action_37,
 action_38,
 action_39,
 action_40,
 action_41,
 action_42,
 action_43,
 action_44,
 action_45,
 action_46,
 action_47,
 action_48,
 action_49,
 action_50,
 action_51,
 action_52,
 action_53,
 action_54,
 action_55,
 action_56,
 action_57,
 action_58,
 action_59,
 action_60,
 action_61,
 action_62,
 action_63,
 action_64,
 action_65,
 action_66,
 action_67,
 action_68,
 action_69,
 action_70,
 action_71,
 action_72,
 action_73 :: () => Int -> HappyReduction (HappyIdentity)

happyReduce_1,
 happyReduce_2,
 happyReduce_3,
 happyReduce_4,
 happyReduce_5,
 happyReduce_6,
 happyReduce_7,
 happyReduce_8,
 happyReduce_9,
 happyReduce_10,
 happyReduce_11,
 happyReduce_12,
 happyReduce_13,
 happyReduce_14,
 happyReduce_15,
 happyReduce_16,
 happyReduce_17,
 happyReduce_18,
 happyReduce_19,
 happyReduce_20,
 happyReduce_21,
 happyReduce_22,
 happyReduce_23,
 happyReduce_24,
 happyReduce_25,
 happyReduce_26,
 happyReduce_27,
 happyReduce_28,
 happyReduce_29,
 happyReduce_30,
 happyReduce_31,
 happyReduce_32,
 happyReduce_33,
 happyReduce_34,
 happyReduce_35,
 happyReduce_36,
 happyReduce_37,
 happyReduce_38,
 happyReduce_39 :: () => HappyReduction (HappyIdentity)

action_0 (9) = happyShift action_5
action_0 (10) = happyShift action_6
action_0 (11) = happyShift action_7
action_0 (12) = happyShift action_8
action_0 (24) = happyShift action_9
action_0 (27) = happyShift action_10
action_0 (32) = happyShift action_11
action_0 (33) = happyShift action_12
action_0 (34) = happyShift action_13
action_0 (35) = happyShift action_14
action_0 (37) = happyShift action_15
action_0 (39) = happyShift action_16
action_0 (41) = happyShift action_17
action_0 (42) = happyShift action_18
action_0 (43) = happyShift action_19
action_0 (45) = happyShift action_20
action_0 (46) = happyShift action_21
action_0 (4) = happyGoto action_22
action_0 (6) = happyGoto action_2
action_0 (7) = happyGoto action_3
action_0 (8) = happyGoto action_23
action_0 _ = happyFail

action_1 (9) = happyShift action_5
action_1 (10) = happyShift action_6
action_1 (11) = happyShift action_7
action_1 (12) = happyShift action_8
action_1 (24) = happyShift action_9
action_1 (27) = happyShift action_10
action_1 (32) = happyShift action_11
action_1 (33) = happyShift action_12
action_1 (34) = happyShift action_13
action_1 (35) = happyShift action_14
action_1 (37) = happyShift action_15
action_1 (39) = happyShift action_16
action_1 (41) = happyShift action_17
action_1 (42) = happyShift action_18
action_1 (43) = happyShift action_19
action_1 (45) = happyShift action_20
action_1 (46) = happyShift action_21
action_1 (6) = happyGoto action_2
action_1 (7) = happyGoto action_3
action_1 (8) = happyGoto action_4
action_1 _ = happyFail

action_2 (11) = happyShift action_44
action_2 _ = happyFail

action_3 _ = happyReduce_36

action_4 (13) = happyShift action_24
action_4 (14) = happyShift action_25
action_4 (15) = happyShift action_26
action_4 (16) = happyShift action_27
action_4 (17) = happyShift action_28
action_4 (18) = happyShift action_29
action_4 (19) = happyShift action_30
action_4 (20) = happyShift action_31
action_4 (21) = happyShift action_32
action_4 (22) = happyShift action_33
action_4 (25) = happyShift action_34
action_4 (26) = happyShift action_35
action_4 (29) = happyShift action_36
action_4 _ = happyFail

action_5 _ = happyReduce_9

action_6 _ = happyReduce_10

action_7 (23) = happyShift action_43
action_7 _ = happyReduce_35

action_8 _ = happyReduce_39

action_9 (9) = happyShift action_5
action_9 (10) = happyShift action_6
action_9 (11) = happyShift action_7
action_9 (12) = happyShift action_8
action_9 (24) = happyShift action_9
action_9 (27) = happyShift action_10
action_9 (32) = happyShift action_11
action_9 (33) = happyShift action_12
action_9 (34) = happyShift action_13
action_9 (35) = happyShift action_14
action_9 (37) = happyShift action_15
action_9 (39) = happyShift action_16
action_9 (41) = happyShift action_17
action_9 (42) = happyShift action_18
action_9 (43) = happyShift action_19
action_9 (45) = happyShift action_20
action_9 (46) = happyShift action_21
action_9 (6) = happyGoto action_2
action_9 (7) = happyGoto action_3
action_9 (8) = happyGoto action_42
action_9 _ = happyFail

action_10 (9) = happyShift action_5
action_10 (10) = happyShift action_6
action_10 (11) = happyShift action_7
action_10 (12) = happyShift action_8
action_10 (24) = happyShift action_9
action_10 (27) = happyShift action_10
action_10 (32) = happyShift action_11
action_10 (33) = happyShift action_12
action_10 (34) = happyShift action_13
action_10 (35) = happyShift action_14
action_10 (37) = happyShift action_15
action_10 (39) = happyShift action_16
action_10 (41) = happyShift action_17
action_10 (42) = happyShift action_18
action_10 (43) = happyShift action_19
action_10 (45) = happyShift action_20
action_10 (46) = happyShift action_21
action_10 (6) = happyGoto action_2
action_10 (7) = happyGoto action_3
action_10 (8) = happyGoto action_41
action_10 _ = happyFail

action_11 _ = happyReduce_6

action_12 _ = happyReduce_5

action_13 _ = happyReduce_7

action_14 _ = happyReduce_8

action_15 (9) = happyShift action_5
action_15 (10) = happyShift action_6
action_15 (11) = happyShift action_7
action_15 (12) = happyShift action_8
action_15 (24) = happyShift action_9
action_15 (27) = happyShift action_10
action_15 (32) = happyShift action_11
action_15 (33) = happyShift action_12
action_15 (34) = happyShift action_13
action_15 (35) = happyShift action_14
action_15 (37) = happyShift action_15
action_15 (39) = happyShift action_16
action_15 (41) = happyShift action_17
action_15 (42) = happyShift action_18
action_15 (43) = happyShift action_19
action_15 (45) = happyShift action_20
action_15 (46) = happyShift action_21
action_15 (6) = happyGoto action_2
action_15 (7) = happyGoto action_3
action_15 (8) = happyGoto action_40
action_15 _ = happyFail

action_16 (9) = happyShift action_5
action_16 (10) = happyShift action_6
action_16 (11) = happyShift action_7
action_16 (12) = happyShift action_8
action_16 (24) = happyShift action_9
action_16 (27) = happyShift action_10
action_16 (32) = happyShift action_11
action_16 (33) = happyShift action_12
action_16 (34) = happyShift action_13
action_16 (35) = happyShift action_14
action_16 (37) = happyShift action_15
action_16 (39) = happyShift action_16
action_16 (41) = happyShift action_17
action_16 (42) = happyShift action_18
action_16 (43) = happyShift action_19
action_16 (45) = happyShift action_20
action_16 (46) = happyShift action_21
action_16 (6) = happyGoto action_2
action_16 (7) = happyGoto action_3
action_16 (8) = happyGoto action_39
action_16 _ = happyFail

action_17 (11) = happyShift action_38
action_17 _ = happyFail

action_18 _ = happyReduce_12

action_19 (11) = happyShift action_37
action_19 _ = happyFail

action_20 _ = happyReduce_37

action_21 _ = happyReduce_38

action_22 (47) = happyAccept
action_22 _ = happyFail

action_23 (13) = happyShift action_24
action_23 (14) = happyShift action_25
action_23 (15) = happyShift action_26
action_23 (16) = happyShift action_27
action_23 (17) = happyShift action_28
action_23 (18) = happyShift action_29
action_23 (19) = happyShift action_30
action_23 (20) = happyShift action_31
action_23 (21) = happyShift action_32
action_23 (22) = happyShift action_33
action_23 (25) = happyShift action_34
action_23 (26) = happyShift action_35
action_23 (29) = happyShift action_36
action_23 _ = happyReduce_2

action_24 (9) = happyShift action_5
action_24 (10) = happyShift action_6
action_24 (11) = happyShift action_7
action_24 (12) = happyShift action_8
action_24 (24) = happyShift action_9
action_24 (27) = happyShift action_10
action_24 (32) = happyShift action_11
action_24 (33) = happyShift action_12
action_24 (34) = happyShift action_13
action_24 (35) = happyShift action_14
action_24 (37) = happyShift action_15
action_24 (39) = happyShift action_16
action_24 (41) = happyShift action_17
action_24 (42) = happyShift action_18
action_24 (43) = happyShift action_19
action_24 (45) = happyShift action_20
action_24 (46) = happyShift action_21
action_24 (6) = happyGoto action_2
action_24 (7) = happyGoto action_3
action_24 (8) = happyGoto action_62
action_24 _ = happyFail

action_25 (9) = happyShift action_5
action_25 (10) = happyShift action_6
action_25 (11) = happyShift action_7
action_25 (12) = happyShift action_8
action_25 (24) = happyShift action_9
action_25 (27) = happyShift action_10
action_25 (32) = happyShift action_11
action_25 (33) = happyShift action_12
action_25 (34) = happyShift action_13
action_25 (35) = happyShift action_14
action_25 (37) = happyShift action_15
action_25 (39) = happyShift action_16
action_25 (41) = happyShift action_17
action_25 (42) = happyShift action_18
action_25 (43) = happyShift action_19
action_25 (45) = happyShift action_20
action_25 (46) = happyShift action_21
action_25 (6) = happyGoto action_2
action_25 (7) = happyGoto action_3
action_25 (8) = happyGoto action_61
action_25 _ = happyFail

action_26 (9) = happyShift action_5
action_26 (10) = happyShift action_6
action_26 (11) = happyShift action_7
action_26 (12) = happyShift action_8
action_26 (24) = happyShift action_9
action_26 (27) = happyShift action_10
action_26 (32) = happyShift action_11
action_26 (33) = happyShift action_12
action_26 (34) = happyShift action_13
action_26 (35) = happyShift action_14
action_26 (37) = happyShift action_15
action_26 (39) = happyShift action_16
action_26 (41) = happyShift action_17
action_26 (42) = happyShift action_18
action_26 (43) = happyShift action_19
action_26 (45) = happyShift action_20
action_26 (46) = happyShift action_21
action_26 (6) = happyGoto action_2
action_26 (7) = happyGoto action_3
action_26 (8) = happyGoto action_60
action_26 _ = happyFail

action_27 (9) = happyShift action_5
action_27 (10) = happyShift action_6
action_27 (11) = happyShift action_7
action_27 (12) = happyShift action_8
action_27 (24) = happyShift action_9
action_27 (27) = happyShift action_10
action_27 (32) = happyShift action_11
action_27 (33) = happyShift action_12
action_27 (34) = happyShift action_13
action_27 (35) = happyShift action_14
action_27 (37) = happyShift action_15
action_27 (39) = happyShift action_16
action_27 (41) = happyShift action_17
action_27 (42) = happyShift action_18
action_27 (43) = happyShift action_19
action_27 (45) = happyShift action_20
action_27 (46) = happyShift action_21
action_27 (6) = happyGoto action_2
action_27 (7) = happyGoto action_3
action_27 (8) = happyGoto action_59
action_27 _ = happyFail

action_28 (9) = happyShift action_5
action_28 (10) = happyShift action_6
action_28 (11) = happyShift action_7
action_28 (12) = happyShift action_8
action_28 (24) = happyShift action_9
action_28 (27) = happyShift action_10
action_28 (32) = happyShift action_11
action_28 (33) = happyShift action_12
action_28 (34) = happyShift action_13
action_28 (35) = happyShift action_14
action_28 (37) = happyShift action_15
action_28 (39) = happyShift action_16
action_28 (41) = happyShift action_17
action_28 (42) = happyShift action_18
action_28 (43) = happyShift action_19
action_28 (45) = happyShift action_20
action_28 (46) = happyShift action_21
action_28 (6) = happyGoto action_2
action_28 (7) = happyGoto action_3
action_28 (8) = happyGoto action_58
action_28 _ = happyFail

action_29 (9) = happyShift action_5
action_29 (10) = happyShift action_6
action_29 (11) = happyShift action_7
action_29 (12) = happyShift action_8
action_29 (24) = happyShift action_9
action_29 (27) = happyShift action_10
action_29 (32) = happyShift action_11
action_29 (33) = happyShift action_12
action_29 (34) = happyShift action_13
action_29 (35) = happyShift action_14
action_29 (37) = happyShift action_15
action_29 (39) = happyShift action_16
action_29 (41) = happyShift action_17
action_29 (42) = happyShift action_18
action_29 (43) = happyShift action_19
action_29 (45) = happyShift action_20
action_29 (46) = happyShift action_21
action_29 (6) = happyGoto action_2
action_29 (7) = happyGoto action_3
action_29 (8) = happyGoto action_57
action_29 _ = happyFail

action_30 (9) = happyShift action_5
action_30 (10) = happyShift action_6
action_30 (11) = happyShift action_7
action_30 (12) = happyShift action_8
action_30 (24) = happyShift action_9
action_30 (27) = happyShift action_10
action_30 (32) = happyShift action_11
action_30 (33) = happyShift action_12
action_30 (34) = happyShift action_13
action_30 (35) = happyShift action_14
action_30 (37) = happyShift action_15
action_30 (39) = happyShift action_16
action_30 (41) = happyShift action_17
action_30 (42) = happyShift action_18
action_30 (43) = happyShift action_19
action_30 (45) = happyShift action_20
action_30 (46) = happyShift action_21
action_30 (6) = happyGoto action_2
action_30 (7) = happyGoto action_3
action_30 (8) = happyGoto action_56
action_30 _ = happyFail

action_31 (9) = happyShift action_5
action_31 (10) = happyShift action_6
action_31 (11) = happyShift action_7
action_31 (12) = happyShift action_8
action_31 (24) = happyShift action_9
action_31 (27) = happyShift action_10
action_31 (32) = happyShift action_11
action_31 (33) = happyShift action_12
action_31 (34) = happyShift action_13
action_31 (35) = happyShift action_14
action_31 (37) = happyShift action_15
action_31 (39) = happyShift action_16
action_31 (41) = happyShift action_17
action_31 (42) = happyShift action_18
action_31 (43) = happyShift action_19
action_31 (45) = happyShift action_20
action_31 (46) = happyShift action_21
action_31 (6) = happyGoto action_2
action_31 (7) = happyGoto action_3
action_31 (8) = happyGoto action_55
action_31 _ = happyFail

action_32 (9) = happyShift action_5
action_32 (10) = happyShift action_6
action_32 (11) = happyShift action_7
action_32 (12) = happyShift action_8
action_32 (24) = happyShift action_9
action_32 (27) = happyShift action_10
action_32 (32) = happyShift action_11
action_32 (33) = happyShift action_12
action_32 (34) = happyShift action_13
action_32 (35) = happyShift action_14
action_32 (37) = happyShift action_15
action_32 (39) = happyShift action_16
action_32 (41) = happyShift action_17
action_32 (42) = happyShift action_18
action_32 (43) = happyShift action_19
action_32 (45) = happyShift action_20
action_32 (46) = happyShift action_21
action_32 (6) = happyGoto action_2
action_32 (7) = happyGoto action_3
action_32 (8) = happyGoto action_54
action_32 _ = happyFail

action_33 (9) = happyShift action_5
action_33 (10) = happyShift action_6
action_33 (11) = happyShift action_7
action_33 (12) = happyShift action_8
action_33 (24) = happyShift action_9
action_33 (27) = happyShift action_10
action_33 (32) = happyShift action_11
action_33 (33) = happyShift action_12
action_33 (34) = happyShift action_13
action_33 (35) = happyShift action_14
action_33 (37) = happyShift action_15
action_33 (39) = happyShift action_16
action_33 (41) = happyShift action_17
action_33 (42) = happyShift action_18
action_33 (43) = happyShift action_19
action_33 (45) = happyShift action_20
action_33 (46) = happyShift action_21
action_33 (6) = happyGoto action_2
action_33 (7) = happyGoto action_3
action_33 (8) = happyGoto action_53
action_33 _ = happyFail

action_34 (9) = happyShift action_5
action_34 (10) = happyShift action_6
action_34 (11) = happyShift action_7
action_34 (12) = happyShift action_8
action_34 (24) = happyShift action_9
action_34 (27) = happyShift action_10
action_34 (32) = happyShift action_11
action_34 (33) = happyShift action_12
action_34 (34) = happyShift action_13
action_34 (35) = happyShift action_14
action_34 (37) = happyShift action_15
action_34 (39) = happyShift action_16
action_34 (41) = happyShift action_17
action_34 (42) = happyShift action_18
action_34 (43) = happyShift action_19
action_34 (45) = happyShift action_20
action_34 (46) = happyShift action_21
action_34 (6) = happyGoto action_2
action_34 (7) = happyGoto action_3
action_34 (8) = happyGoto action_52
action_34 _ = happyFail

action_35 (9) = happyShift action_5
action_35 (10) = happyShift action_6
action_35 (11) = happyShift action_7
action_35 (12) = happyShift action_8
action_35 (24) = happyShift action_9
action_35 (27) = happyShift action_10
action_35 (32) = happyShift action_11
action_35 (33) = happyShift action_12
action_35 (34) = happyShift action_13
action_35 (35) = happyShift action_14
action_35 (37) = happyShift action_15
action_35 (39) = happyShift action_16
action_35 (41) = happyShift action_17
action_35 (42) = happyShift action_18
action_35 (43) = happyShift action_19
action_35 (45) = happyShift action_20
action_35 (46) = happyShift action_21
action_35 (6) = happyGoto action_2
action_35 (7) = happyGoto action_3
action_35 (8) = happyGoto action_51
action_35 _ = happyFail

action_36 (9) = happyShift action_5
action_36 (10) = happyShift action_6
action_36 (11) = happyShift action_7
action_36 (12) = happyShift action_8
action_36 (24) = happyShift action_9
action_36 (27) = happyShift action_10
action_36 (32) = happyShift action_11
action_36 (33) = happyShift action_12
action_36 (34) = happyShift action_13
action_36 (35) = happyShift action_14
action_36 (37) = happyShift action_15
action_36 (39) = happyShift action_16
action_36 (41) = happyShift action_17
action_36 (42) = happyShift action_18
action_36 (43) = happyShift action_19
action_36 (45) = happyShift action_20
action_36 (46) = happyShift action_21
action_36 (4) = happyGoto action_50
action_36 (6) = happyGoto action_2
action_36 (7) = happyGoto action_3
action_36 (8) = happyGoto action_23
action_36 _ = happyFail

action_37 _ = happyReduce_14

action_38 _ = happyReduce_13

action_39 (13) = happyShift action_24
action_39 (14) = happyShift action_25
action_39 (15) = happyShift action_26
action_39 (16) = happyShift action_27
action_39 (17) = happyShift action_28
action_39 (18) = happyShift action_29
action_39 (19) = happyShift action_30
action_39 (20) = happyShift action_31
action_39 (21) = happyShift action_32
action_39 (22) = happyShift action_33
action_39 (25) = happyShift action_34
action_39 (26) = happyShift action_35
action_39 (40) = happyShift action_49
action_39 _ = happyFail

action_40 (13) = happyShift action_24
action_40 (14) = happyShift action_25
action_40 (15) = happyShift action_26
action_40 (16) = happyShift action_27
action_40 (17) = happyShift action_28
action_40 (18) = happyShift action_29
action_40 (19) = happyShift action_30
action_40 (20) = happyShift action_31
action_40 (21) = happyShift action_32
action_40 (22) = happyShift action_33
action_40 (25) = happyShift action_34
action_40 (26) = happyShift action_35
action_40 (36) = happyShift action_48
action_40 _ = happyFail

action_41 (13) = happyShift action_24
action_41 (14) = happyShift action_25
action_41 (15) = happyShift action_26
action_41 (16) = happyShift action_27
action_41 (17) = happyShift action_28
action_41 (18) = happyShift action_29
action_41 (19) = happyShift action_30
action_41 (20) = happyShift action_31
action_41 (21) = happyShift action_32
action_41 (22) = happyShift action_33
action_41 (25) = happyShift action_34
action_41 (26) = happyShift action_35
action_41 (28) = happyShift action_47
action_41 _ = happyFail

action_42 (13) = happyShift action_24
action_42 (14) = happyShift action_25
action_42 (15) = happyShift action_26
action_42 (16) = happyShift action_27
action_42 _ = happyReduce_32

action_43 (9) = happyShift action_5
action_43 (10) = happyShift action_6
action_43 (11) = happyShift action_7
action_43 (12) = happyShift action_8
action_43 (24) = happyShift action_9
action_43 (27) = happyShift action_10
action_43 (32) = happyShift action_11
action_43 (33) = happyShift action_12
action_43 (34) = happyShift action_13
action_43 (35) = happyShift action_14
action_43 (37) = happyShift action_15
action_43 (39) = happyShift action_16
action_43 (41) = happyShift action_17
action_43 (42) = happyShift action_18
action_43 (43) = happyShift action_19
action_43 (45) = happyShift action_20
action_43 (46) = happyShift action_21
action_43 (6) = happyGoto action_2
action_43 (7) = happyGoto action_3
action_43 (8) = happyGoto action_46
action_43 _ = happyFail

action_44 (23) = happyShift action_45
action_44 _ = happyReduce_15

action_45 (9) = happyShift action_5
action_45 (10) = happyShift action_6
action_45 (11) = happyShift action_7
action_45 (12) = happyShift action_8
action_45 (24) = happyShift action_9
action_45 (27) = happyShift action_10
action_45 (32) = happyShift action_11
action_45 (33) = happyShift action_12
action_45 (34) = happyShift action_13
action_45 (35) = happyShift action_14
action_45 (37) = happyShift action_15
action_45 (39) = happyShift action_16
action_45 (41) = happyShift action_17
action_45 (42) = happyShift action_18
action_45 (43) = happyShift action_19
action_45 (45) = happyShift action_20
action_45 (46) = happyShift action_21
action_45 (6) = happyGoto action_2
action_45 (7) = happyGoto action_3
action_45 (8) = happyGoto action_67
action_45 _ = happyFail

action_46 (13) = happyShift action_24
action_46 (14) = happyShift action_25
action_46 (15) = happyShift action_26
action_46 (16) = happyShift action_27
action_46 (17) = happyShift action_28
action_46 (18) = happyShift action_29
action_46 (19) = happyShift action_30
action_46 (20) = happyShift action_31
action_46 (21) = happyShift action_32
action_46 (22) = happyShift action_33
action_46 (25) = happyShift action_34
action_46 (26) = happyShift action_35
action_46 _ = happyReduce_11

action_47 _ = happyReduce_31

action_48 (9) = happyShift action_5
action_48 (10) = happyShift action_6
action_48 (11) = happyShift action_7
action_48 (12) = happyShift action_8
action_48 (24) = happyShift action_9
action_48 (27) = happyShift action_10
action_48 (30) = happyShift action_65
action_48 (32) = happyShift action_11
action_48 (33) = happyShift action_12
action_48 (34) = happyShift action_13
action_48 (35) = happyShift action_14
action_48 (37) = happyShift action_15
action_48 (39) = happyShift action_16
action_48 (41) = happyShift action_17
action_48 (42) = happyShift action_18
action_48 (43) = happyShift action_19
action_48 (45) = happyShift action_20
action_48 (46) = happyShift action_21
action_48 (5) = happyGoto action_66
action_48 (6) = happyGoto action_2
action_48 (7) = happyGoto action_3
action_48 (8) = happyGoto action_64
action_48 _ = happyFail

action_49 (9) = happyShift action_5
action_49 (10) = happyShift action_6
action_49 (11) = happyShift action_7
action_49 (12) = happyShift action_8
action_49 (24) = happyShift action_9
action_49 (27) = happyShift action_10
action_49 (30) = happyShift action_65
action_49 (32) = happyShift action_11
action_49 (33) = happyShift action_12
action_49 (34) = happyShift action_13
action_49 (35) = happyShift action_14
action_49 (37) = happyShift action_15
action_49 (39) = happyShift action_16
action_49 (41) = happyShift action_17
action_49 (42) = happyShift action_18
action_49 (43) = happyShift action_19
action_49 (45) = happyShift action_20
action_49 (46) = happyShift action_21
action_49 (5) = happyGoto action_63
action_49 (6) = happyGoto action_2
action_49 (7) = happyGoto action_3
action_49 (8) = happyGoto action_64
action_49 _ = happyFail

action_50 _ = happyReduce_1

action_51 (13) = happyShift action_24
action_51 (14) = happyShift action_25
action_51 (15) = happyShift action_26
action_51 (16) = happyShift action_27
action_51 (17) = happyShift action_28
action_51 (18) = happyShift action_29
action_51 (19) = happyShift action_30
action_51 (20) = happyShift action_31
action_51 (21) = happyShift action_32
action_51 (22) = happyShift action_33
action_51 _ = happyReduce_34

action_52 (13) = happyShift action_24
action_52 (14) = happyShift action_25
action_52 (15) = happyShift action_26
action_52 (16) = happyShift action_27
action_52 (17) = happyShift action_28
action_52 (18) = happyShift action_29
action_52 (19) = happyShift action_30
action_52 (20) = happyShift action_31
action_52 (21) = happyShift action_32
action_52 (22) = happyShift action_33
action_52 _ = happyReduce_33

action_53 (13) = happyShift action_24
action_53 (14) = happyShift action_25
action_53 (15) = happyShift action_26
action_53 (16) = happyShift action_27
action_53 _ = happyReduce_29

action_54 (13) = happyShift action_24
action_54 (14) = happyShift action_25
action_54 (15) = happyShift action_26
action_54 (16) = happyShift action_27
action_54 _ = happyReduce_30

action_55 (13) = happyShift action_24
action_55 (14) = happyShift action_25
action_55 (15) = happyShift action_26
action_55 (16) = happyShift action_27
action_55 _ = happyReduce_27

action_56 (13) = happyShift action_24
action_56 (14) = happyShift action_25
action_56 (15) = happyShift action_26
action_56 (16) = happyShift action_27
action_56 _ = happyReduce_28

action_57 (13) = happyShift action_24
action_57 (14) = happyShift action_25
action_57 (15) = happyShift action_26
action_57 (16) = happyShift action_27
action_57 _ = happyReduce_26

action_58 (13) = happyShift action_24
action_58 (14) = happyShift action_25
action_58 (15) = happyShift action_26
action_58 (16) = happyShift action_27
action_58 _ = happyReduce_25

action_59 _ = happyReduce_24

action_60 _ = happyReduce_23

action_61 (15) = happyShift action_26
action_61 (16) = happyShift action_27
action_61 _ = happyReduce_22

action_62 (15) = happyShift action_26
action_62 (16) = happyShift action_27
action_62 _ = happyReduce_21

action_63 (38) = happyShift action_70
action_63 _ = happyReduce_17

action_64 (13) = happyShift action_24
action_64 (14) = happyShift action_25
action_64 (15) = happyShift action_26
action_64 (16) = happyShift action_27
action_64 (17) = happyShift action_28
action_64 (18) = happyShift action_29
action_64 (19) = happyShift action_30
action_64 (20) = happyShift action_31
action_64 (21) = happyShift action_32
action_64 (22) = happyShift action_33
action_64 (25) = happyShift action_34
action_64 (26) = happyShift action_35
action_64 _ = happyReduce_3

action_65 (9) = happyShift action_5
action_65 (10) = happyShift action_6
action_65 (11) = happyShift action_7
action_65 (12) = happyShift action_8
action_65 (24) = happyShift action_9
action_65 (27) = happyShift action_10
action_65 (32) = happyShift action_11
action_65 (33) = happyShift action_12
action_65 (34) = happyShift action_13
action_65 (35) = happyShift action_14
action_65 (37) = happyShift action_15
action_65 (39) = happyShift action_16
action_65 (41) = happyShift action_17
action_65 (42) = happyShift action_18
action_65 (43) = happyShift action_19
action_65 (45) = happyShift action_20
action_65 (46) = happyShift action_21
action_65 (4) = happyGoto action_69
action_65 (6) = happyGoto action_2
action_65 (7) = happyGoto action_3
action_65 (8) = happyGoto action_23
action_65 _ = happyFail

action_66 (38) = happyShift action_68
action_66 _ = happyReduce_19

action_67 (13) = happyShift action_24
action_67 (14) = happyShift action_25
action_67 (15) = happyShift action_26
action_67 (16) = happyShift action_27
action_67 (17) = happyShift action_28
action_67 (18) = happyShift action_29
action_67 (19) = happyShift action_30
action_67 (20) = happyShift action_31
action_67 (21) = happyShift action_32
action_67 (22) = happyShift action_33
action_67 (25) = happyShift action_34
action_67 (26) = happyShift action_35
action_67 _ = happyReduce_16

action_68 (9) = happyShift action_5
action_68 (10) = happyShift action_6
action_68 (11) = happyShift action_7
action_68 (12) = happyShift action_8
action_68 (24) = happyShift action_9
action_68 (27) = happyShift action_10
action_68 (30) = happyShift action_65
action_68 (32) = happyShift action_11
action_68 (33) = happyShift action_12
action_68 (34) = happyShift action_13
action_68 (35) = happyShift action_14
action_68 (37) = happyShift action_15
action_68 (39) = happyShift action_16
action_68 (41) = happyShift action_17
action_68 (42) = happyShift action_18
action_68 (43) = happyShift action_19
action_68 (45) = happyShift action_20
action_68 (46) = happyShift action_21
action_68 (5) = happyGoto action_73
action_68 (6) = happyGoto action_2
action_68 (7) = happyGoto action_3
action_68 (8) = happyGoto action_64
action_68 _ = happyFail

action_69 (31) = happyShift action_72
action_69 _ = happyFail

action_70 (9) = happyShift action_5
action_70 (10) = happyShift action_6
action_70 (11) = happyShift action_7
action_70 (12) = happyShift action_8
action_70 (24) = happyShift action_9
action_70 (27) = happyShift action_10
action_70 (30) = happyShift action_65
action_70 (32) = happyShift action_11
action_70 (33) = happyShift action_12
action_70 (34) = happyShift action_13
action_70 (35) = happyShift action_14
action_70 (37) = happyShift action_15
action_70 (39) = happyShift action_16
action_70 (41) = happyShift action_17
action_70 (42) = happyShift action_18
action_70 (43) = happyShift action_19
action_70 (45) = happyShift action_20
action_70 (46) = happyShift action_21
action_70 (5) = happyGoto action_71
action_70 (6) = happyGoto action_2
action_70 (7) = happyGoto action_3
action_70 (8) = happyGoto action_64
action_70 _ = happyFail

action_71 _ = happyReduce_18

action_72 _ = happyReduce_4

action_73 _ = happyReduce_20

happyReduce_1 = happySpecReduce_3  4 happyReduction_1
happyReduction_1 (HappyAbsSyn4  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn4
		 ([happy_var_1] ++ happy_var_3
	)
happyReduction_1 _ _ _  = notHappyAtAll 

happyReduce_2 = happySpecReduce_1  4 happyReduction_2
happyReduction_2 (HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn4
		 ([happy_var_1]
	)
happyReduction_2 _  = notHappyAtAll 

happyReduce_3 = happySpecReduce_1  5 happyReduction_3
happyReduction_3 (HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn4
		 ([happy_var_1]
	)
happyReduction_3 _  = notHappyAtAll 

happyReduce_4 = happySpecReduce_3  5 happyReduction_4
happyReduction_4 _
	(HappyAbsSyn4  happy_var_2)
	_
	 =  HappyAbsSyn4
		 (happy_var_2
	)
happyReduction_4 _ _ _  = notHappyAtAll 

happyReduce_5 = happySpecReduce_1  6 happyReduction_5
happyReduction_5 _
	 =  HappyAbsSyn6
		 ("int"
	)

happyReduce_6 = happySpecReduce_1  6 happyReduction_6
happyReduction_6 _
	 =  HappyAbsSyn6
		 ("bool"
	)

happyReduce_7 = happySpecReduce_1  6 happyReduction_7
happyReduction_7 _
	 =  HappyAbsSyn6
		 ("double"
	)

happyReduce_8 = happySpecReduce_1  6 happyReduction_8
happyReduction_8 _
	 =  HappyAbsSyn6
		 ("string"
	)

happyReduce_9 = happySpecReduce_1  7 happyReduction_9
happyReduction_9 (HappyTerminal (TokenEntero _ happy_var_1))
	 =  HappyAbsSyn7
		 ((NumInt happy_var_1 ,"int")
	)
happyReduction_9 _  = notHappyAtAll 

happyReduce_10 = happySpecReduce_1  7 happyReduction_10
happyReduction_10 (HappyTerminal (TokenPFlotante _ happy_var_1))
	 =  HappyAbsSyn7
		 ((NumDouble happy_var_1 ,"double")
	)
happyReduction_10 _  = notHappyAtAll 

happyReduce_11 = happySpecReduce_3  8 happyReduction_11
happyReduction_11 (HappyAbsSyn7  happy_var_3)
	_
	(HappyTerminal (TokenId _ happy_var_1))
	 =  HappyAbsSyn7
		 ((Asignacion happy_var_1 happy_var_3,"")
	)
happyReduction_11 _ _ _  = notHappyAtAll 

happyReduce_12 = happySpecReduce_1  8 happyReduction_12
happyReduction_12 _
	 =  HappyAbsSyn7
		 ((Read ,"")
	)

happyReduce_13 = happySpecReduce_2  8 happyReduction_13
happyReduction_13 (HappyTerminal (TokenId _ happy_var_2))
	_
	 =  HappyAbsSyn7
		 ((Write happy_var_2 ,"")
	)
happyReduction_13 _ _  = notHappyAtAll 

happyReduce_14 = happySpecReduce_2  8 happyReduction_14
happyReduction_14 (HappyTerminal (TokenId _ happy_var_2))
	_
	 =  HappyAbsSyn7
		 ((Length happy_var_2 ,"")
	)
happyReduction_14 _ _  = notHappyAtAll 

happyReduce_15 = happySpecReduce_2  8 happyReduction_15
happyReduction_15 (HappyTerminal (TokenId _ happy_var_2))
	(HappyAbsSyn6  happy_var_1)
	 =  HappyAbsSyn7
		 ((Declaracion happy_var_1 happy_var_2 NoExp,"")
	)
happyReduction_15 _ _  = notHappyAtAll 

happyReduce_16 = happyReduce 4 8 happyReduction_16
happyReduction_16 ((HappyAbsSyn7  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyTerminal (TokenId _ happy_var_2)) `HappyStk`
	(HappyAbsSyn6  happy_var_1) `HappyStk`
	happyRest)
	 = HappyAbsSyn7
		 ((Declaracion happy_var_1 happy_var_2 (EOpc happy_var_4) ,"")
	) `HappyStk` happyRest

happyReduce_17 = happyReduce 4 8 happyReduction_17
happyReduction_17 ((HappyAbsSyn4  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn7  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn7
		 ((Condicional happy_var_2 happy_var_4 NoBloque,"")
	) `HappyStk` happyRest

happyReduce_18 = happyReduce 6 8 happyReduction_18
happyReduction_18 ((HappyAbsSyn4  happy_var_6) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn4  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn7  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn7
		 ((Condicional happy_var_2 happy_var_4 (BElse happy_var_6) ,"")
	) `HappyStk` happyRest

happyReduce_19 = happyReduce 4 8 happyReduction_19
happyReduction_19 ((HappyAbsSyn4  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn7  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn7
		 ((Iteracion happy_var_2 happy_var_4 NoBloque,"")
	) `HappyStk` happyRest

happyReduce_20 = happyReduce 6 8 happyReduction_20
happyReduction_20 ((HappyAbsSyn4  happy_var_6) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn4  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn7  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn7
		 ((Iteracion happy_var_2 happy_var_4 (BElse happy_var_6) ,"")
	) `HappyStk` happyRest

happyReduce_21 = happySpecReduce_3  8 happyReduction_21
happyReduction_21 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Mas happy_var_1 happy_var_3 ,"")
	)
happyReduction_21 _ _ _  = notHappyAtAll 

happyReduce_22 = happySpecReduce_3  8 happyReduction_22
happyReduction_22 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Menos happy_var_1 happy_var_3 ,"")
	)
happyReduction_22 _ _ _  = notHappyAtAll 

happyReduce_23 = happySpecReduce_3  8 happyReduction_23
happyReduction_23 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Por happy_var_1 happy_var_3 ,"")
	)
happyReduction_23 _ _ _  = notHappyAtAll 

happyReduce_24 = happySpecReduce_3  8 happyReduction_24
happyReduction_24 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Div happy_var_1 happy_var_3 ,"")
	)
happyReduction_24 _ _ _  = notHappyAtAll 

happyReduce_25 = happySpecReduce_3  8 happyReduction_25
happyReduction_25 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Igual happy_var_1 happy_var_3 ,"")
	)
happyReduction_25 _ _ _  = notHappyAtAll 

happyReduce_26 = happySpecReduce_3  8 happyReduction_26
happyReduction_26 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Distinto happy_var_1 happy_var_3 ,"")
	)
happyReduction_26 _ _ _  = notHappyAtAll 

happyReduce_27 = happySpecReduce_3  8 happyReduction_27
happyReduction_27 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Menor happy_var_1 happy_var_3 ,"")
	)
happyReduction_27 _ _ _  = notHappyAtAll 

happyReduce_28 = happySpecReduce_3  8 happyReduction_28
happyReduction_28 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((Mayor happy_var_1 happy_var_3 ,"")
	)
happyReduction_28 _ _ _  = notHappyAtAll 

happyReduce_29 = happySpecReduce_3  8 happyReduction_29
happyReduction_29 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((MenorIgual happy_var_1 happy_var_3 ,"")
	)
happyReduction_29 _ _ _  = notHappyAtAll 

happyReduce_30 = happySpecReduce_3  8 happyReduction_30
happyReduction_30 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((MayorIgual happy_var_1 happy_var_3 ,"")
	)
happyReduction_30 _ _ _  = notHappyAtAll 

happyReduce_31 = happySpecReduce_3  8 happyReduction_31
happyReduction_31 _
	(HappyAbsSyn7  happy_var_2)
	_
	 =  HappyAbsSyn7
		 ((Parentesis happy_var_2 ,"")
	)
happyReduction_31 _ _ _  = notHappyAtAll 

happyReduce_32 = happySpecReduce_2  8 happyReduction_32
happyReduction_32 (HappyAbsSyn7  happy_var_2)
	_
	 =  HappyAbsSyn7
		 ((ONot happy_var_2 ,"")
	)
happyReduction_32 _ _  = notHappyAtAll 

happyReduce_33 = happySpecReduce_3  8 happyReduction_33
happyReduction_33 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((OAnd happy_var_1 happy_var_3 ,"")
	)
happyReduction_33 _ _ _  = notHappyAtAll 

happyReduce_34 = happySpecReduce_3  8 happyReduction_34
happyReduction_34 (HappyAbsSyn7  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 ((OOr happy_var_1 happy_var_3 ,"")
	)
happyReduction_34 _ _ _  = notHappyAtAll 

happyReduce_35 = happySpecReduce_1  8 happyReduction_35
happyReduction_35 (HappyTerminal (TokenId _ happy_var_1))
	 =  HappyAbsSyn7
		 ((Id happy_var_1 ,"")
	)
happyReduction_35 _  = notHappyAtAll 

happyReduce_36 = happySpecReduce_1  8 happyReduction_36
happyReduction_36 (HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn7
		 (happy_var_1
	)
happyReduction_36 _  = notHappyAtAll 

happyReduce_37 = happySpecReduce_1  8 happyReduction_37
happyReduction_37 _
	 =  HappyAbsSyn7
		 ((BTrue ,"bool")
	)

happyReduce_38 = happySpecReduce_1  8 happyReduction_38
happyReduction_38 _
	 =  HappyAbsSyn7
		 ((BFalse ,"bool")
	)

happyReduce_39 = happySpecReduce_1  8 happyReduction_39
happyReduction_39 (HappyTerminal (TokenLiteral _ happy_var_1))
	 =  HappyAbsSyn7
		 ((Lit happy_var_1 ,"string")
	)
happyReduction_39 _  = notHappyAtAll 

happyNewToken action sts stk [] =
	action 47 47 notHappyAtAll (HappyState action) sts stk []

happyNewToken action sts stk (tk:tks) =
	let cont i = action i i tk (HappyState action) sts stk tks in
	case tk of {
	TokenEntero _ happy_dollar_dollar -> cont 9;
	TokenPFlotante _ happy_dollar_dollar -> cont 10;
	TokenId _ happy_dollar_dollar -> cont 11;
	TokenLiteral _ happy_dollar_dollar -> cont 12;
	TokenMas _ -> cont 13;
	TokenMenos _ -> cont 14;
	TokenPor _ -> cont 15;
	TokenDiv _ -> cont 16;
	TokenIgual _ -> cont 17;
	TokenDistinto _ -> cont 18;
	TokenMayor _ -> cont 19;
	TokenMenor _ -> cont 20;
	TokenMayorIgual _ -> cont 21;
	TokenMenorIgual _ -> cont 22;
	TokenAsig _ -> cont 23;
	TokenNot _ -> cont 24;
	TokenAnd _ -> cont 25;
	TokenOr _ -> cont 26;
	TokenOCurv _ -> cont 27;
	TokenCCurv _ -> cont 28;
	TokenSemicolon _ -> cont 29;
	TokenPllaveA _ -> cont 30;
	TokenPllaveC _ -> cont 31;
	TokenTBool _ -> cont 32;
	TokenTInt _ -> cont 33;
	TokenTDouble _ -> cont 34;
	TokenTString _ -> cont 35;
	TokenPRrepeat _ -> cont 36;
	TokenPRwhile _ -> cont 37;
	TokenPRelse _ -> cont 38;
	TokenPRif _ -> cont 39;
	TokenPRthen _ -> cont 40;
	TokenPRwrite _ -> cont 41;
	TokenPRread _ -> cont 42;
	TokenPRlength _ -> cont 43;
	TokenPRstr2int _ -> cont 44;
	TokenPRtrue _ -> cont 45;
	TokenPRfalse _ -> cont 46;
	_ -> happyError' (tk:tks)
	}

happyError_ tk tks = happyError' (tk:tks)

newtype HappyIdentity a = HappyIdentity a
happyIdentity = HappyIdentity
happyRunIdentity (HappyIdentity a) = a

instance Monad HappyIdentity where
    return = HappyIdentity
    (HappyIdentity p) >>= q = q p

happyThen :: () => HappyIdentity a -> (a -> HappyIdentity b) -> HappyIdentity b
happyThen = (>>=)
happyReturn :: () => a -> HappyIdentity a
happyReturn = (return)
happyThen1 m k tks = (>>=) m (\a -> k a tks)
happyReturn1 :: () => a -> b -> HappyIdentity a
happyReturn1 = \a tks -> (return) a
happyError' :: () => [Token] -> HappyIdentity a
happyError' = HappyIdentity . happyError

exprSint tks = happyRunIdentity happySomeParser where
  happySomeParser = happyThen (happyParse action_0 tks) (\x -> case x of {HappyAbsSyn4 z -> happyReturn z; _other -> notHappyAtAll })

happySeq = happyDontSeq


-- El tratamiento de errores es trivial: al primer error, se aborta mostrando la posición del próximo token que queda por ingresar a la pila de análisis.

happyError :: [Token] -> a
happyError [] = error ("Unexpected EOF")
happyError (p:ps) = error ("Parse Error in (Line " ++ show x ++ ", Col " ++ show y ++ ")")
               where (AlexPn _ x y ) = posicion p
{-# LINE 1 "templates/GenericTemplate.hs" #-}
{-# LINE 1 "templates/GenericTemplate.hs" #-}
{-# LINE 1 "<built-in>" #-}
{-# LINE 1 "<command-line>" #-}
{-# LINE 1 "templates/GenericTemplate.hs" #-}
-- Id: GenericTemplate.hs,v 1.26 2005/01/14 14:47:22 simonmar Exp 

{-# LINE 28 "templates/GenericTemplate.hs" #-}








{-# LINE 49 "templates/GenericTemplate.hs" #-}

{-# LINE 59 "templates/GenericTemplate.hs" #-}

{-# LINE 68 "templates/GenericTemplate.hs" #-}

infixr 9 `HappyStk`
data HappyStk a = HappyStk a (HappyStk a)

-----------------------------------------------------------------------------
-- starting the parse

happyParse start_state = happyNewToken start_state notHappyAtAll notHappyAtAll

-----------------------------------------------------------------------------
-- Accepting the parse

-- If the current token is (1), it means we've just accepted a partial
-- parse (a %partial parser).  We must ignore the saved token on the top of
-- the stack in this case.
happyAccept (1) tk st sts (_ `HappyStk` ans `HappyStk` _) =
	happyReturn1 ans
happyAccept j tk st sts (HappyStk ans _) = 
	 (happyReturn1 ans)

-----------------------------------------------------------------------------
-- Arrays only: do the next action

{-# LINE 155 "templates/GenericTemplate.hs" #-}

-----------------------------------------------------------------------------
-- HappyState data type (not arrays)



newtype HappyState b c = HappyState
        (Int ->                    -- token number
         Int ->                    -- token number (yes, again)
         b ->                           -- token semantic value
         HappyState b c ->              -- current state
         [HappyState b c] ->            -- state stack
         c)



-----------------------------------------------------------------------------
-- Shifting a token

happyShift new_state (1) tk st sts stk@(x `HappyStk` _) =
     let i = (case x of { HappyErrorToken (i) -> i }) in
--     trace "shifting the error token" $
     new_state i i tk (HappyState (new_state)) ((st):(sts)) (stk)

happyShift new_state i tk st sts stk =
     happyNewToken new_state ((st):(sts)) ((HappyTerminal (tk))`HappyStk`stk)

-- happyReduce is specialised for the common cases.

happySpecReduce_0 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_0 nt fn j tk st@((HappyState (action))) sts stk
     = action nt j tk st ((st):(sts)) (fn `HappyStk` stk)

happySpecReduce_1 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_1 nt fn j tk _ sts@(((st@(HappyState (action))):(_))) (v1`HappyStk`stk')
     = let r = fn v1 in
       happySeq r (action nt j tk st sts (r `HappyStk` stk'))

happySpecReduce_2 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_2 nt fn j tk _ ((_):(sts@(((st@(HappyState (action))):(_))))) (v1`HappyStk`v2`HappyStk`stk')
     = let r = fn v1 v2 in
       happySeq r (action nt j tk st sts (r `HappyStk` stk'))

happySpecReduce_3 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_3 nt fn j tk _ ((_):(((_):(sts@(((st@(HappyState (action))):(_))))))) (v1`HappyStk`v2`HappyStk`v3`HappyStk`stk')
     = let r = fn v1 v2 v3 in
       happySeq r (action nt j tk st sts (r `HappyStk` stk'))

happyReduce k i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happyReduce k nt fn j tk st sts stk
     = case happyDrop (k - ((1) :: Int)) sts of
	 sts1@(((st1@(HappyState (action))):(_))) ->
        	let r = fn stk in  -- it doesn't hurt to always seq here...
       		happyDoSeq r (action nt j tk st1 sts1 r)

happyMonadReduce k nt fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happyMonadReduce k nt fn j tk st sts stk =
        happyThen1 (fn stk tk) (\r -> action nt j tk st1 sts1 (r `HappyStk` drop_stk))
       where sts1@(((st1@(HappyState (action))):(_))) = happyDrop k ((st):(sts))
             drop_stk = happyDropStk k stk

happyMonad2Reduce k nt fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happyMonad2Reduce k nt fn j tk st sts stk =
       happyThen1 (fn stk tk) (\r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk))
       where sts1@(((st1@(HappyState (action))):(_))) = happyDrop k ((st):(sts))
             drop_stk = happyDropStk k stk





             new_state = action


happyDrop (0) l = l
happyDrop n ((_):(t)) = happyDrop (n - ((1) :: Int)) t

happyDropStk (0) l = l
happyDropStk n (x `HappyStk` xs) = happyDropStk (n - ((1)::Int)) xs

-----------------------------------------------------------------------------
-- Moving to a new state after a reduction

{-# LINE 253 "templates/GenericTemplate.hs" #-}
happyGoto action j tk st = action j j tk (HappyState action)


-----------------------------------------------------------------------------
-- Error recovery ((1) is the error token)

-- parse error if we are in recovery and we fail again
happyFail  (1) tk old_st _ stk =
--	trace "failing" $ 
    	happyError_ tk

{-  We don't need state discarding for our restricted implementation of
    "error".  In fact, it can cause some bogus parses, so I've disabled it
    for now --SDM

-- discard a state
happyFail  (1) tk old_st (((HappyState (action))):(sts)) 
						(saved_tok `HappyStk` _ `HappyStk` stk) =
--	trace ("discarding state, depth " ++ show (length stk))  $
	action (1) (1) tk (HappyState (action)) sts ((saved_tok`HappyStk`stk))
-}

-- Enter error recovery: generate an error token,
--                       save the old token and carry on.
happyFail  i tk (HappyState (action)) sts stk =
--      trace "entering error recovery" $
	action (1) (1) tk (HappyState (action)) sts ( (HappyErrorToken (i)) `HappyStk` stk)

-- Internal happy errors:

notHappyAtAll = error "Internal Happy error\n"

-----------------------------------------------------------------------------
-- Hack to get the typechecker to accept our action functions







-----------------------------------------------------------------------------
-- Seq-ing.  If the --strict flag is given, then Happy emits 
--	happySeq = happyDoSeq
-- otherwise it emits
-- 	happySeq = happyDontSeq

happyDoSeq, happyDontSeq :: a -> b -> b
happyDoSeq   a b = a `seq` b
happyDontSeq a b = b

-----------------------------------------------------------------------------
-- Don't inline any functions from the template.  GHC has a nasty habit
-- of deciding to inline happyGoto everywhere, which increases the size of
-- the generated parser quite a bit.

{-# LINE 317 "templates/GenericTemplate.hs" #-}
{-# NOINLINE happyShift #-}
{-# NOINLINE happySpecReduce_0 #-}
{-# NOINLINE happySpecReduce_1 #-}
{-# NOINLINE happySpecReduce_2 #-}
{-# NOINLINE happySpecReduce_3 #-}
{-# NOINLINE happyReduce #-}
{-# NOINLINE happyMonadReduce #-}
{-# NOINLINE happyGoto #-}
{-# NOINLINE happyFail #-}

-- end of Happy Template.
